<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>药房管理-中药</title>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/icon.css"/>">

<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
</head>
<body>
    <script type="text/javascript">
        $(function(){
        	//刷新
			$("#lfq-Pharmacydetail-reload").linkbutton({
				onClick : function() {
					$("#lfq-tb-Pharmacydetail-zhongyao").datagrid({
						url : 'selectPharmacydetailVoZhongYao',
						method : 'post'
					});
					$('#lfq-Pharmacydetail-search-zhong').searchbox("setValue", "");
				}
			});
        	
			//搜索
			$('#lfq-Pharmacydetail-search-zhong').searchbox({
				searcher : function(value, name) {
					$("#lfq-tb-Pharmacydetail-zhongyao").datagrid({
						url : 'selectPharmacydetailVoZhongYaoLikeCpname',
						method : 'post',
						queryParams : {
							cpName : value
						}
					});
				}
			});
        	
        });
    
    </script>
    
    <table id="lfq-tb-Pharmacydetail-zhongyao" class="easyui-datagrid"
		data-options="url:'selectPharmacydetailVoZhongYao',
			fitColumns:true,
			fit:true,
			pagination: true,
			pageSize: 10,
			pageList: [10, 20, 30, 40],
			rownumbers: true,
			singleSelect:true,
			toolbar: '#lfq-tool-Pharmacydetail-zhongyao',
			border:false
			">
		<thead>
			<tr>
				<th data-options="field:'ygxqNo',width:'5%', checkbox: true">ID</th>
				<th data-options="field:'cpName',width:'30%'">药品名称</th>
				<th data-options="field:'ygxqNumber',width:'15%'">数量</th>
				<th data-options="field:'ygxqPurchaseprice',width:'15%'">进价</th>
				<th data-options="field:'ygxqSaleprice',width:'15%'">售价</th>
				<th data-options="field:'yfxqUnit',width:'15%'">单位</th>
			</tr>
		</thead>
	</table>

	<div id="lfq-tool-Pharmacydetail-zhongyao">
		<a id="lfq-Pharmacydetail-edit" class="easyui-linkbutton"
			data-options="iconCls:'icon-edit',plain:true">修改信息</a> <a
			id="lfq-Pharmacydetail-quyao-xiyao" class="easyui-linkbutton"
			data-options="iconCls:'icon-zhongyao',plain:true">取药</a> <a
			id="lfq-Pharmacydetail-reload" class="easyui-linkbutton"
			data-options="iconCls:'icon-reload',plain:true">刷新</a> <input
			id="lfq-Pharmacydetail-search-zhong" class="easyui-searchbox"
			data-options="menu: '#lfq-menu-zhongyao', width: 260, prompt: '请输入药品名称'" />
	</div>

	<div id="lfq-menu-zhongyao" style="width: 120px">
		<div data-options="name:'name'">药品名称</div>
	</div>
    
</body>
</html>